package com.ruoyi.cems.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cems.mapper.BmsEvcBelongOfficeContactMapper;
import com.ruoyi.cems.domain.BmsEvcBelongOfficeContact;
import com.ruoyi.cems.service.IBmsEvcBelongOfficeContactService;

/**
 * 属地应急办联络;Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@Service
public class BmsEvcBelongOfficeContactServiceImpl implements IBmsEvcBelongOfficeContactService 
{
    @Autowired
    private BmsEvcBelongOfficeContactMapper bmsEvcBelongOfficeContactMapper;

    /**
     * 查询属地应急办联络;
     * 
     * @param ID 属地应急办联络;主键
     * @return 属地应急办联络;
     */
    @Override
    public BmsEvcBelongOfficeContact selectBmsEvcBelongOfficeContactByID(String ID)
    {
        return bmsEvcBelongOfficeContactMapper.selectBmsEvcBelongOfficeContactByID(ID);
    }

    /**
     * 查询属地应急办联络;列表
     * 
     * @param bmsEvcBelongOfficeContact 属地应急办联络;
     * @return 属地应急办联络;
     */
    @Override
    public List<BmsEvcBelongOfficeContact> selectBmsEvcBelongOfficeContactList(BmsEvcBelongOfficeContact bmsEvcBelongOfficeContact)
    {
        return bmsEvcBelongOfficeContactMapper.selectBmsEvcBelongOfficeContactList(bmsEvcBelongOfficeContact);
    }

    @Override
    public List<BmsEvcBelongOfficeContact> selectBmsEvcBelongOfficeContactListByVcId(String vcId) {
        return bmsEvcBelongOfficeContactMapper.selectBmsEvcBelongOfficeContactListByVcId(vcId);
    }

    /**
     * 新增属地应急办联络;
     * 
     * @param bmsEvcBelongOfficeContact 属地应急办联络;
     * @return 结果
     */
    @Override
    public int insertBmsEvcBelongOfficeContact(BmsEvcBelongOfficeContact bmsEvcBelongOfficeContact)
    {
        return bmsEvcBelongOfficeContactMapper.insertBmsEvcBelongOfficeContact(bmsEvcBelongOfficeContact);
    }

    /**
     * 修改属地应急办联络;
     * 
     * @param bmsEvcBelongOfficeContact 属地应急办联络;
     * @return 结果
     */
    @Override
    public int updateBmsEvcBelongOfficeContact(BmsEvcBelongOfficeContact bmsEvcBelongOfficeContact)
    {
        return bmsEvcBelongOfficeContactMapper.updateBmsEvcBelongOfficeContact(bmsEvcBelongOfficeContact);
    }

    /**
     * 批量删除属地应急办联络;
     * 
     * @param IDs 需要删除的属地应急办联络;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEvcBelongOfficeContactByIDs(String[] IDs)
    {
        return bmsEvcBelongOfficeContactMapper.deleteBmsEvcBelongOfficeContactByIDs(IDs);
    }

    /**
     * 删除属地应急办联络;信息
     * 
     * @param ID 属地应急办联络;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEvcBelongOfficeContactByID(String ID)
    {
        return bmsEvcBelongOfficeContactMapper.deleteBmsEvcBelongOfficeContactByID(ID);
    }
}
